package com.lemon.springcloudstreamyuumi.controller;

import com.lemon.springcloudstreamyuumi.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.messaging.Message;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SpringBootZoo
 * @author: Mr.Lemon
 * @create: 2020/7/1
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private IMessageProvider messageProvider;

    @GetMapping("/send")
    public String send(){
        return  messageProvider.send();
    }

}
